import { localeProps } from '../../utils'

const label = '折叠面板'
const name = 'elCollapse'

export default {
  menu: 'aide',
  icon: 'carbon:collapse-all',
  label,
  name,
  mask: false,
  children: 'elCollapseItem',
  event: ['change'],
  rule() {
    return {
      type: name,
      props: {},
      style: {
        width: '100%'
      },
      children: []
    }
  },
  props(_, { t }) {
    return localeProps(t, name + '.props', [
      {
        type: 'switch',
        field: 'accordion'
      }
    ])
  }
}
